package top.biangege.bbs.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.biangege.bbs.entity.Result;
import top.biangege.bbs.service.VideoService;

@RestController
@RequestMapping("/index")
public class IndexController {

    @Autowired
    private VideoService videoService;

    @RequestMapping("/indexData")
    public Result getIndexData() {
        return videoService.getIndexData();
    }
}
